package com.ruoyi.his.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 患者对象 his_patient
 *
 * @date 2025-03-12
 */
public class HisPatient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 患者ID */
    private Long patientId;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String patientName;

    /** 患者电话 */
    @Excel(name = "患者电话")
    private String tel;

    /** 患者身份证 */
    @Excel(name = "患者身份证")
    private String idCard;

    /** 患者年龄 */
    @Excel(name = "患者年龄")
    private String age;

    /** 性别（0女 1男 2未知） */
    @Excel(name = "性别", readConverterExp = "0=女,1=男,2=未知")
    private Long gender;

    /** 地址信息 */
    @Excel(name = "地址信息")
    private String address;

    /** 患者出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "患者出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date patientDate;

    /** 过敏史 */
    @Excel(name = "过敏史")
    private String allergy;

    public Long getTreatId() {
        return treatId;
    }

    public void setTreatId(Long treatId) {
        this.treatId = treatId;
    }

    private Long treatId;

    public Long getQueueId() {
        return queueId;
    }

    public void setQueueId(Long queueId) {
        this.queueId = queueId;
    }

    private Long queueId;

    /** 删除标志（0正常 1删除） */
    private String delFlag;

    /** 患者所属User */
    private String patienUsername;

    public void setPatientId(Long patientId)
    {
        this.patientId = patientId;
    }

    public Long getPatientId()
    {
        return patientId;
    }
    public void setPatientName(String patientName)
    {
        this.patientName = patientName;
    }

    public String getPatientName()
    {
        return patientName;
    }
    public void setTel(String tel)
    {
        this.tel = tel;
    }

    public String getTel()
    {
        return tel;
    }
    public void setIdCard(String idCard)
    {
        this.idCard = idCard;
    }

    public String getIdCard()
    {
        return idCard;
    }
    public void setAge(String age)
    {
        this.age = age;
    }

    public String getAge()
    {
        return age;
    }
    public void setGender(Long gender)
    {
        this.gender = gender;
    }

    public Long getGender()
    {
        return gender;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setPatientDate(Date patientDate)
    {
        this.patientDate = patientDate;
    }

    public Date getPatientDate()
    {
        return patientDate;
    }
    public void setAllergy(String allergy)
    {
        this.allergy = allergy;
    }

    public String getAllergy()
    {
        return allergy;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setPatienUsername(String patienUsername)
    {
        this.patienUsername = patienUsername;
    }

    public String getPatienUsername()
    {
        return patienUsername;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("patientId", getPatientId())
                .append("patientName", getPatientName())
                .append("tel", getTel())
                .append("idCard", getIdCard())
                .append("age", getAge())
                .append("gender", getGender())
                .append("address", getAddress())
                .append("patientDate", getPatientDate())
                .append("allergy", getAllergy())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("patienUsername", getPatienUsername())
                .toString();
    }
}
